home *** CD-ROM | disk | FTP | other *** search
- <WIZSET CellIndent = RepeatString( ' ', 4 )>
-
- <WIZSET i = 0>
- <WIZLOOP index="item" list="$${HTMLTable}">
- <WIZSET i = i + 1>
- <WIZIF i eq 1>
- <WIZSET ObjectType = item>
- <WIZBREAK>
- <WIZIF ObjectType neq 'Table'>
- <WIZBREAK>
- </WIZIF>
- <WIZELSEIF i eq 2>
- <WIZSET RowCount = item>
- <WIZELSEIF i eq 3>
- <WIZSET ColCount = item>
- <WIZELSEIF i eq 4>
- <WIZSET RowWidths = item>
- <WIZELSEIF i eq 5>
- <WIZSET ColWidths = item>
- <WIZBREAK>
- </WIZIF>
- </WIZLOOP>
-
-
- <WIZIF ObjectType neq 'Table'>
-
- Invalid object type
-
- <WIZELSE>
-
- <!---- Tag name and attributes ---->
-
-
- <WIZSET TableTagName = DefaultCase('TABLE')>
-
- <WIZIF Align eq 'center'>
- <WIZSET aAlign = ' ' & DefaultCase('ALIGN') & '="center"'>
- <WIZELSEIF Align eq 'right'>
- <WIZSET aAlign = ' ' & DefaultCase('ALIGN') & '="right"'>
- <WIZELSE>
- <WIZSET aAlign = ''>
- </WIZIF>
-
- <WIZIF not ParameterExists('BgColor')>
- <WIZSET aBgColor = ''>
- <WIZELSEIF BgColor eq 'Null'>
- <WIZSET aBgColor = ''>
- <WIZELSE>
- <WIZSET aBgColor = ' ' & DefaultCase('BGCOLOR') & '="' & BgColor & '"'>
- </WIZIF>
-
- <WIZIF not ParameterExists('TableWidth')>
- <WIZSET aWidth = ''>
- <WIZELSEIF TableWidth eq ''>
- <WIZSET aWidth = ''>
- <WIZELSE>
- <WIZSET aWidth = ' ' & DefaultCase('WIDTH') & '="' & TableWidth & '"'>
- </WIZIF>
-
- <WIZSET aCellSpacing = ' ' & DefaultCase('CELLSPACING') & '="' & CellSpacing & '"'>
- <WIZSET aCellPadding = ' ' & DefaultCase('CELLPADDING') & '="' & CellPadding & '"'>
-
- <WIZIF Border neq '0'>
- <WIZSET aBorder = ' ' & DefaultCase('BORDER') & '="' & Border & '"'>
-
- <WIZIF Trim(Frame) eq 'Top side only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="above"'>
- <WIZELSEIF Trim(Frame) eq 'Bottom side only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="below"'>
- <WIZELSEIF Trim(Frame) eq 'Top and bottom sides only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="hsides"'>
- <WIZELSEIF Trim(Frame) eq 'Right and left sides only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="vsides"'>
- <WIZELSEIF Trim(Frame) eq 'Left-hand side only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="lhs"'>
- <WIZELSEIF Trim(Frame) eq 'Right-hand side only'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="rhs"'>
- <WIZELSEIF Trim(Frame) eq 'All four sides'>
- <WIZSET aFrame = ' ' & DefaultCase('FRAME') & '="box"'>
- <WIZELSE>
- <WIZSET aFrame = ''>
- </WIZIF>
-
- <WIZIF Trim(Rules) eq 'Between row and column groups'>
- <WIZSET aRules = ' ' & DefaultCase('RULES') & '="groups"'>
- <WIZELSEIF Trim(Rules) eq 'Between rows'>
- <WIZSET aRules = ' ' & DefaultCase('RULES') & '="rows"'>
- <WIZELSEIF Trim(Rules) eq 'Between columns'>
- <WIZSET aRules = ' ' & DefaultCase('RULES') & '="cols"'>
- <WIZELSEIF Trim(Rules) eq 'Between all rows and columns'>
- <WIZSET aRules = ' ' & DefaultCase('RULES') & '="all"'>
- <WIZELSE>
- <WIZSET aRules = ''>
- </WIZIF>
-
- <WIZELSE>
- <WIZSET aBorder = ' ' & DefaultCase('BORDER') & '="' & Border & '"'>
- <WIZSET aFrame = ''>
- <WIZSET aRules = ''>
-
- </WIZIF>
-
-
- <$${TableTagName}$${aAlign}$${aBgColor}$${aWidth}$${aCellSpacing}$${aCellPadding}$${aBorder}$${aFrame}$${aRules}>
- <WIZSET i = 0>
- <WIZSET CurrentRow = 0>
- <WIZLOOP index="item" list="$${HTMLTable}">
-
- <WIZSET i = i + 1>
- <WIZIF i gt 5>
- <WIZSET CurrentRow = CurrentRow + 1>
- <WIZSET Row = item>
- <WIZINCLUDE template="Table_Row.wml">
- </WIZIF>
-
- </WIZLOOP>
-
- <WIZIF 1>>
- </$${TableTagName}>
- </WIZIF>
-
-
- </WIZIF>
-